package com.cuit.qx.utils;

import java.util.List;

/**
 * @Author:wjd
 * @Description:
 * @date:Created in 12:46 2020/9/16
 * @Modified By:
 */
public class ReturnData {
    Integer code;
    String msg;
    Integer total;
    Object object;
    List objects;

    public ReturnData(Integer code, String msg, Object t) {
        this.code = code;
        this.msg = msg;
        object = t;
    }

    public ReturnData(Integer code, String msg, List objects) {
        this.code = code;
        this.msg = msg;
        this.objects = objects;
    }


    public ReturnData(Integer code, String msg, Integer total , List objects) {
        this.code = code;
        this.msg = msg;
        this.total=total;
        this.objects = objects;
    }
    public ReturnData(Integer code, String msg, Integer total , List object, List objects) {
        this.code = code;
        this.msg = msg;
        this.total=total;
        this.object = object;
        this.objects = objects;
    }

    public ReturnData(Integer code, String msg, Integer total , Object object) {
        this.code = code;
        this.msg = msg;
        this.total=total;
        this.object = object;
    }

    public ReturnData(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ReturnData(ReturnStateCode returnStateCode, Object object) {
        this.code = returnStateCode.getCode();
        this.msg = returnStateCode.getMsg();
        this.object = object;
    }

    public ReturnData(ReturnStateCode returnStateCode) {
        this.code = returnStateCode.getCode();
        this.msg = returnStateCode.getMsg();
    }

    public ReturnData(ReturnStateCode returnStateCode, Object object, int total) {
        this.code = returnStateCode.getCode();
        this.msg = returnStateCode.getMsg();
        this.object = object;
        this.total = total;
    }
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object t) {
        object = t;
    }

    public List getObjects() {
        return objects;
    }

    public void setObjects(List objects) {
        this.objects = objects;
    }
}
